/*
package com.yunc.modules.quartz.job;

import com.yunc.base.service.RedisService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

*/
/**
 * spring自带的定时任务，不需要集群，每个端都要连接
 * 在服务器配置低时出现的redis超时问题
 * 保持redis连接
 *//*

@Component("redisConnectTest")
@Configurable
@EnableScheduling
@Slf4j
public class RedisConnectTest {

    @Autowired
    private RedisService redisService;

    */
/**
     * 每一分钟执行
     *//*

    @Scheduled(fixedRate = 1000 * 200)
    public void test() {
        redisService.set("redis_connect_test", 1, 1);
        // log.info("保持redis连接定时任务");
    }

}
*/
